#ifndef _CONVOLUTION_H_
#define _CONVOLUTION_H_
#define IMGTYPE char

#define DEBUG

typedef struct imgstruct{
    IMGTYPE * ImgAry;
    int RowSize;
    int ColSize;
    
} ImgStut;
typedef ImgStut*  pImgStut;

extern IMGTYPE GetPixel(pImgStut img,pImgStut pattern ,int y,int x);
extern IMGTYPE SetPixel(pImgStut img,pImgStut pattern ,int y,int x,IMGTYPE data);
extern pImgStut CreateImg(int ImgRowSize,int ImgColSize);
extern void convolution(pImgStut Img,pImgStut pattern);
extern ImgStut ExpendImg(ImgStut img);
extern int PrintImg(pImgStut img);





#endif
